/**
 * Copyright  (c) 2009-2013 XLab,  Org. 
 * All  rights  reserved. 
 */
package org.xlab.baseframework.dao.impl;

import org.springframework.stereotype.Repository;
import org.xlab.baseframework.dao.api.ISystemParameterDAO;
import org.xlab.baseframework.domain.SystemParameter;
import org.xlab.baseframework.exception.ObjectNotFoundException;
import org.xlab.baseframework.exception.TooManyObjectsFoundException;

/**
 * <p>
 * 系统参数数据库访问层接口实现
 * </p>
 * 
 * @author MaKuBEX Email:makubexnet@gmail.com
 * @version 1.0.0 Sep 9, 2010
 * @since 1.0.0
 * 
 */
@Repository
public class SystemParameterDAOImpl extends BaseDAOImpl<SystemParameter, Long>
		implements ISystemParameterDAO {

	/**
	 * @see org.xlab.baseframework.dao.api.ISystemParameterDAO#findByCode(java.lang.String)
	 */
	public SystemParameter findByCode(String code)
			throws ObjectNotFoundException, TooManyObjectsFoundException {
		SystemParameter result;
		result = super.findByUniqueProperty("code", code);
		return result;
	}

}
